import request from '@/config/axios'

export interface MemberLabelVO {
  id: number
  label: string
  score: number
  status: byte
}

// 查询相亲标签库列表
export const getMemberLabelPage = async (params) => {
  return await request.get({ url: `/blind/member-label/page`, params })
}

// 查询相亲标签库列表
export const getMemberLabelAll = async () => {
  return await request.get({ url: `/blind/member-label/getMemberLabel` })
}

// 查询相亲标签库详情
export const getMemberLabel = async (id: number) => {
  return await request.get({ url: `/blind/member-label/get?id=` + id })
}

// 新增相亲标签库
export const createMemberLabel = async (data: MemberLabelVO) => {
  return await request.post({ url: `/blind/member-label/create`, data })
}

// 修改相亲标签库
export const updateMemberLabel = async (data: MemberLabelVO) => {
  return await request.put({ url: `/blind/member-label/update`, data })
}

// 删除相亲标签库
export const deleteMemberLabel = async (id: number) => {
  return await request.delete({ url: `/blind/member-label/delete?id=` + id })
}

// 导出相亲标签库 Excel
export const exportMemberLabel = async (params) => {
  return await request.download({ url: `/blind/member-label/export-excel`, params })
}
